package com.digua.base.socket

import com.digua.base.socket.response.ErrorResponse
import org.java_websocket.framing.Framedata
import java.nio.ByteBuffer

abstract class StringSocketListener() : SocketListener {
    override fun onConnected() {
    }

    override fun onConnectFailed(e: Throwable?) {
    }

    override fun onDisconnect() {
    }

    override fun onSendDataError(errorResponse: ErrorResponse?) {
    }

    override fun <T> onMessage(message: String, data: T?) {
    }

    override fun <T> onMessage(bytes: ByteBuffer, data: T?) {
    }

    override fun onPing(framedata: Framedata?) {
    }

    override fun onPong(framedata: Framedata?) {
    }

}